<!DOCTYPE html>
<html>
    <head>
        <title>Ecommerce</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="stylesheet" href="../css/bootstrap.min.css" />
        <link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="../css/colorpicker.css" />
        <link rel="stylesheet" href="../css/datepicker.css" />
        <link rel="stylesheet" href="../css/uniform.css" />
        <link rel="stylesheet" href="../css/select2.css" />
        <link rel="stylesheet" href="../css/matrix-style.css" />
        <link rel="stylesheet" href="../css/matrix-media.css" />
        <link rel="stylesheet" href="../css/bootstrap-wysihtml5.css" />
        <link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
    </head>
    <body>
        <div id="content">
            <div id="content-header">
                <h1>Alterar Cliente:</h1>
            </div>
            <div style="margin-left: 22%" class="row-fluid">
                <div class="span7">
                    <div class="widget-box">
                        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
                            <h5>Alterar:</h5>
                        </div>
                        <div class="widget-content nopadding">
                            <form id="form" action="ClienteServlet?cmd=alterar" method="POST" class="form-horizontal">
                                <input name="id" value="${pessoa.id}" type="hidden">
                                <div class="control-group">
                                    <label class="control-label">Nome:</label>
                                    <div class="controls">
                                        <input name="nome" value="${cliente.nome}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">CPF:</label>
                                    <div class="controls">
                                        <input name="cpf" value="${cliente.cpf}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">RG:</label>
                                    <div class="controls">
                                        <input name="rg" value="${cliente.rg}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Email:</label>
                                    <div class="controls">
                                        <input name="email" value="${cliente.email}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Celular:</label>
                                    <div class="controls">
                                        <input name="celular" value="${cliente.celular}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Telefone:</label>
                                    <div class="controls">
                                        <input name="telefone" value="${cliente.telefone}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Login:</label>
                                    <div class="controls">
                                        <input name="login" value="${usuario.login}" type="text" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label">Senha:</label>
                                    <div class="controls">
                                        <input name="senha" value="${usuario.senha}" type="password" />
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-success">Alterar</button>
                                </div>
                                <c:if test="${!empty msg}">
                                    <script type="text/javascript">
                                        alert('${msg}');
                                    </script>
                                </c:if>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
